package com.run.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.run.merchant.mapper.RunFeedbackInfoMapper;
import com.run.merchant.domain.RunFeedbackInfo;
import com.run.merchant.service.IRunFeedbackInfoService;

/**
 * 反馈信息Service业务层处理
 * 
 * @author run
 * @date 2025-05-20
 */
@Service
public class RunFeedbackInfoServiceImpl implements IRunFeedbackInfoService 
{
    @Autowired
    private RunFeedbackInfoMapper runFeedbackInfoMapper;

    /**
     * 查询反馈信息
     * 
     * @param feedbackId 反馈信息主键
     * @return 反馈信息
     */
    @Override
    public RunFeedbackInfo selectRunFeedbackInfoByFeedbackId(Long feedbackId)
    {
        return runFeedbackInfoMapper.selectRunFeedbackInfoByFeedbackId(feedbackId);
    }

    /**
     * 查询反馈信息列表
     * 
     * @param runFeedbackInfo 反馈信息
     * @return 反馈信息
     */
    @Override
    public List<RunFeedbackInfo> selectRunFeedbackInfoList(RunFeedbackInfo runFeedbackInfo)
    {
        return runFeedbackInfoMapper.selectRunFeedbackInfoList(runFeedbackInfo);
    }

    /**
     * 新增反馈信息
     * 
     * @param runFeedbackInfo 反馈信息
     * @return 结果
     */
    @Override
    public int insertRunFeedbackInfo(RunFeedbackInfo runFeedbackInfo)
    {
        return runFeedbackInfoMapper.insertRunFeedbackInfo(runFeedbackInfo);
    }

    /**
     * 修改反馈信息
     * 
     * @param runFeedbackInfo 反馈信息
     * @return 结果
     */
    @Override
    public int updateRunFeedbackInfo(RunFeedbackInfo runFeedbackInfo)
    {
        return runFeedbackInfoMapper.updateRunFeedbackInfo(runFeedbackInfo);
    }

    /**
     * 批量删除反馈信息
     * 
     * @param feedbackIds 需要删除的反馈信息主键
     * @return 结果
     */
    @Override
    public int deleteRunFeedbackInfoByFeedbackIds(Long[] feedbackIds)
    {
        return runFeedbackInfoMapper.deleteRunFeedbackInfoByFeedbackIds(feedbackIds);
    }

    /**
     * 删除反馈信息信息
     * 
     * @param feedbackId 反馈信息主键
     * @return 结果
     */
    @Override
    public int deleteRunFeedbackInfoByFeedbackId(Long feedbackId)
    {
        return runFeedbackInfoMapper.deleteRunFeedbackInfoByFeedbackId(feedbackId);
    }
}
